package electricity.service;

import electricity.dto.UserDto;
import electricity.domain.SysUser;

public interface LoginService {

    /**
     * 登录
     * @param userDto
     * @return
     */
    String login(UserDto userDto);

    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    SysUser selectByUsername(String username);
    /**
     * 登陆 by Sa-token
     * @param username
     * @return
     */
    boolean login(String username, String password);
}
